package com.ucl.model.entity.base;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 *  <p> 创建日期 </p>
 */

@Getter
@Setter
public abstract class BaseAddEntity<T extends Model> extends Model<T> {
    /**
     * 创建日期 - 现在时表示主动创建
     */
    @ApiModelProperty(value = "创建日期")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    //@Past(message = "创建时间必须是过去时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private String createUser;

    /*@ApiModelProperty(value = "是否可用")
    @TableField(fill = FieldFill.INSERT)
    private Boolean isDelete;*/

}

